home *** CD-ROM | disk | FTP | other *** search
- Unpack everything in /
-
- Because of the paths compiled in the binaries, this package MUST be
- unpacked in /usr, or symbolic links have to be produced. Of course,
- you can also set the right environment-variables, but beware, there are
- a lot of them, and the intention of this package is just to provide a
- plug-and-play solution to TeX-printing.
-
- Add /usr/local/bin and /usr/TeX/bin to your PATH, if not already there.
-
- Edit a few places to support your printer:
- (if you incidentally have a HP-Deskjet compatible with A4-paper inside,
- known to your Linux-Box as /dev/lp1 -- as I do -- you may skip this step ;-)
- 1) First look up /usr/local/lib/ghostscript/doc/device.lst to find
- your particular printer (or a compatible one). If it's not there
- you're out of luck.
- 2) In /usr/local/bin/gspr change -sDEVICE=deskjet to
- -sDEVICE='your device name found in step 1)'
- 3) In /usr/local/bin/gspr change -r300 to -r<res> or -r<xres>x<yres>
- corresponding to the horizontal and vertical resolutions of your
- printer in dots_per_inch.
- 4) In /usr/local/bin/gspr change -sPAPERSIZE=a4 to your papersize, if
- yours is different (a list of known sizes can be found in
- /usr/local/lib/ghostscript/doc/use.doc)
- 5) In /usr/local/bin/gspr change -sOutputFile=/dev/lp1 to the device
- your printer is hooked up to. If you do not want to use a raw device,
- but a spooler like lpr instead, read /usr/local/lib/ghostscript/doc/use.doc
- to learn how to do that. Beware, Ghostscript may produces HUGE files,
- It sends effectively a bitmap to the printer.
- (Now Ghostscript is ready to go. If you have a Postscript file say foo.ps,
- try gspr foo.ps and it should get printed.)
- 6) Look up the Metafont mode-description name of your printer in
- /usr/TeX/lib/mf/macros/modes.mf. Look for a mode_def which has
- a comment (everything from % to end of line is a comment) stating
- the name of your printer. For HP Laserjet e.g you'll find CanonCX
- as the appropriate mode name.
- If you don't find one try at least one with the same horizontal and
- vertical resolution as yours. The rest is not THAT much important.
- Output may look sloppy but readable.
- 7) In /usr/TeX/lib/ps/config.ps change the Line D 300 to D <res>,
- the resolution of your printer in dpi, or to
- X <xres>
- Y <yres>
- (on two lines) if horizontal and vertical resolutions differ.
- 8) In /usr/TeX/lib/ps/config.ps add the line
- M your_printer_mode
- where your_printer_mode is the mode-description name for your printer
- you looked up in step 6)
- 9) In /usr/TeX/lib/ps/config.ps change your Paper size information, if
- youre not using A4, i.e. either comment out the A4size definition and
- uncomment (=remove the starting stars) the letterSize definition,
- if that's the right one, or comment out the A4size definition and
- add your own in front, something like
- @ myownSize hor_size ver_size
- @+ %%PaperSize: myown
- 10) Make /usr/TeX/lib/tex/fonts/pk world writeable by issuing
- chmod a+w /usr/TeX/lib/fonts/pk. That is necessary
- to enable everyone to use the automatic font-generation feature.
-
- Thats it.
-